package com.eatrip.presentation;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class Hello extends TagSupport {


	/**
	 * 
	 */
	private static final long serialVersionUID = 3252284091372624548L;

	private String message;
	
	
	public int doEndTag() throws JspException {
		return SKIP_PAGE;
	}


	public int doStartTag() throws JspException {
		try {
            JspWriter out = super.pageContext.getOut();
            out.print("<h1>"+message+"</h1>");
            
        } catch(IOException ioe) {
            throw new JspException("Error: " + ioe.getMessage());
        }       
        return SKIP_BODY;
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}
	
	}
